package cn.com.bluemoon.daps.sync.core.sync.sql;

import cn.com.bluemoon.daps.model.entity.DapDataModelSubordinateKey;
import cn.com.bluemoon.daps.model.entity.DapDataModelTable;
import cn.com.bluemoon.daps.model.entity.DapDataModelTableField;
import cn.com.bluemoon.daps.model.entity.DapDataModelTablePartition;
import cn.com.bluemoon.daps.sync.base.BmScript;

import java.util.List;

/**
 * @author Jarod Kong
 * @date 2021-01-15 23:56
 **/
public interface ITableSql {

    default BmScript dropTable(String oldTableName) {
        return null;
    }



    default BmScript createTable(DapDataModelTable newT,
                               List<DapDataModelTableField> newFs,
                               List<DapDataModelSubordinateKey> newIs,
                               List<DapDataModelTablePartition> newPs) {
        return null;
    }

    default BmScript changeTable(DapDataModelTable oldT, DapDataModelTable newT) {
        return null;
    }
}
